package isquirrel.util;
import static org.junit.Assert.*;
import org.junit.Test;


public class UrlTest {
	@Test
	public void test()
	{
		assertEquals(URL.constructDBpediaPage("computer science"), "http://dbpedia.org/resource/Computer_science");
		assertEquals(URL.constructDBpediaPage("Computer Science"), "http://dbpedia.org/resource/Computer_science");
		assertEquals(URL.constructDBpediaPage("  computer science   "), "http://dbpedia.org/resource/Computer_science");
	
		assertEquals(URL.getTitle("http://dbpedia.org/resource/Computer_science"), "Computer science");
	}
}
